package cate.game.role.farm.spicefb.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBSpiceFb;
import cate.game.res.MixRes;
import easy.java.dev.note.NoteField;

import java.util.List;

@ClientMsg(title = "水晶峡谷关卡战斗结果 の 返回")
public class SpiceFbChallengeResultResp implements MsgOutput {
    @NoteField(value = "挑战是否成功")
    public boolean win;

    @NoteField(value = "获得的奖励", detail = "如果失败或者领取过首通奖励，则为null")
    public MixRes reward;

    @NoteField(value = "关卡挑战条件,失败为null", detail = "List<挑战ID>")
    public List<Integer> challenge;

    @NoteField(value = "正在战斗")
    public boolean fighting;

    @NoteField(value = "已通关的关数")
    public int combatNumPass;

    @NoteField(value = "解锁的章节数")
    public int chapterOpen;

    @NoteField(value = "今日通关次数")
    public int todayPassed;

    @NoteField("今日购买次数")
    public int todayBuyTimes;

    @NoteField(value = "剩余挑战次数", detail = "购买之后才会增加，跨天也不清除，前端优先判断今日通关次数字段")
    public int remainBuyTimes;

    @Override
    public MsgConfig conf() {
        return MsgIdBSpiceFb.CHALLENGE_RESP;
    }
}
